package com.umeox.watch.moto.dataservice.db.model;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

/**
 * Created by Rambo 2022/9/16
 * Describe:
 */
@Entity(tableName = QuranLearn.TABLE_NAME)
public class QuranLearn {

    @Ignore
    public static final String TABLE_NAME = "quran_learn";

    @PrimaryKey
    private int id;

    private int chapterIndex; //章节下标

    private int duration; //持续时间  单位：分钟

    private String deadline; //最后截止时间 格式：HH:mm ，24小时制

    private int rewardValue; //奖励数量

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getChapterIndex() {
        return chapterIndex;
    }

    public void setChapterIndex(int chapterIndex) {
        this.chapterIndex = chapterIndex;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public int getRewardValue() {
        return rewardValue;
    }

    public void setRewardValue(int rewardValue) {
        this.rewardValue = rewardValue;
    }

    @Override
    public String toString() {
        return "QuranLearn{" +
                "id=" + id +
                ", chapterIndex=" + chapterIndex +
                ", duration=" + duration +
                ", deadline='" + deadline + '\'' +
                ", rewardValue=" + rewardValue +
                '}';
    }
}
